export {}

interface Post {
  title: string;
  content: string;
}

function printPost (post: Post) {
  console.log(post.title, post.content);
}

printPost({
  title: 'Hello TypeScript',
  content: 'TypeScript',
})

const post: Post = { // 报错
  title: '123'
}